/*
 * \brief  Linux-specific sleep implementation
 * \author Norman Feske
 * \date   2006-08-15
 */

/*
 * Copyright (C) 2006-2009 Norman Feske
 * Genode Labs, Feske & Helmuth Systementwicklung GbR
 *
 * This file is part of the Genode OS framework, which is distributed
 * under the terms of the GNU General Public License version 2.
 */

/* Linux */
#include <unistd.h>

/* local */
#include "timer_session_component.h"


void Timer::Session_component::msleep(unsigned ms)
{
	if (usleep(ms * 1000) != 0)
		throw Genode::Blocking_canceled();
}
